package com.doctcloud.hisinfo.api;

import com.doctcloud.common.core.constant.ServiceNameConstants;
import com.doctcloud.hisinfo.api.factory.RemoteHisOutpBillFallbackFactory;
import com.doctcloud.hisinfo.histable.domain.outpbill.OutpBillItemsDo;
import com.doctcloud.hisinfo.histable.domain.outpbill.OutpOrderDescDo;
import com.doctcloud.hisinfo.histable.domain.outpbill.OutpRcptMasterDo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;
import java.util.List;

@FeignClient(contextId = "remoteOutpbillService", value = ServiceNameConstants.HIS_OUTPBILL_SERVICE, fallbackFactory = RemoteHisOutpBillFallbackFactory.class)
public interface RemoteHisOutpBillService {
    @GetMapping("/outpbill/outprcptmaster/listByDate")
    public List<OutpRcptMasterDo> listRcptByDate(@RequestParam("startDate") Date startDate,
                                                 @RequestParam("endDate") Date endDate);
    @GetMapping("/outpbill/outporderdesc/listByRcpt")
    public List<OutpOrderDescDo> listOrdersByRcpt(@RequestParam("rcptNo")String rcptNo);
    @GetMapping("/outpbill/outpbillitems/listByRcpt")
    public List<OutpBillItemsDo> listBillByRcpt(@RequestParam("rcptNo")String rcptNo);
}
